package com.ruoyi.typing.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 article
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long articleId;

    /** 类别 */
    @Excel(name = "类别")
    private String leibie;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    private String content;

    /** 用户 */
    @Excel(name = "用户")
    private Long userid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 评分 */
    @Excel(name = "评分")
    private Long score;

    /** 收藏 */
    @Excel(name = "收藏")
    private Long collect;

    /** 启用 */
    @Excel(name = "启用")
    private Integer active;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setLeibie(String leibie) 
    {
        this.leibie = leibie;
    }

    public String getLeibie() 
    {
        return leibie;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setCollect(Long collect) 
    {
        this.collect = collect;
    }

    public Long getCollect() 
    {
        return collect;
    }
    public void setActive(Integer active) 
    {
        this.active = active;
    }

    public Integer getActive() 
    {
        return active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("leibie", getLeibie())
            .append("title", getTitle())
            .append("content", getContent())
            .append("userid", getUserid())
            .append("createdTime", getCreatedTime())
            .append("score", getScore())
            .append("collect", getCollect())
            .append("active", getActive())
            .toString();
    }
}
